package online.longzipeng.householdbillssystem.service.impl;

import online.longzipeng.householdbillssystem.business.entity.Permiss;
import online.longzipeng.householdbillssystem.mapper.PermissMapper;
import online.longzipeng.householdbillssystem.service.PermissService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lzp
 * @since 2021-04-17
 */
@Service
public class PermissServiceImpl extends ServiceImpl<PermissMapper, Permiss> implements PermissService {

    @Autowired
    private PermissMapper permissMapper;

    @Override
    public boolean add(Permiss permiss) {
        return save(permiss);
    }

    @Override
    public boolean delete(Integer id) {
        return removeById(id);
    }

    @Override
    public boolean edit(Permiss permiss) {
        return updateById(permiss);
    }

    @Override
    public Permiss findById(Integer id) {
        return getById(id);
    }
}
